package com.fept.msgcore.repository.serviceImpl;

import com.fept.msgcore.repository.mapper.ReportRecordMapper;
import com.fept.msgcore.repository.pojo.ReportRecord;
import com.fept.msgcore.repository.service.IReportRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Srma on 2/10/2017.
 */

@Service("reportRecordService")
public class ReportRecordServiceImpl implements IReportRecordService {

    private static IReportRecordService instance;

    @Autowired
    private ReportRecordMapper reportRecordMapper;

    public ReportRecordServiceImpl()
    {
        instance = this;
    }

    public static IReportRecordService getInstance()
    {
        return instance;
    }

    public void addReportRecord(ReportRecord reportRecord)
    {
        reportRecordMapper.insert(reportRecord);
    }

}
